﻿using Minecraft.Model;

namespace Minecraft.Config.Csv.CsvCom
{
	/// <summary>
	/// 
	/// </summary>
	public class ModAchievementStatisInfo
	{
		/// <summary>
		/// 
		/// </summary>
		public ModAchievementStatisInfo()
		{
			AchievementId = 0;
			Level = 0;
			LastId = 0;
			Description = "";
			ConditionType = EnumAchievementConditionType.None;
			ConditionNum = 0;
			ConditionId = 0;
			Award1Type = EnumAchievementAwardType.None;
			Award1Id = 0;
			Award1Num = 0;
			Award2Type = EnumAchievementAwardType.None;
			Award2Id = 0;
			Award2Num = 0;
			AwardGot = false;
		}

		/// <summary>
		/// 成就id
		/// </summary>
		public int AchievementId;

		/// <summary>
		/// 成就显示的级别要求(下限)
		/// </summary>
		public int Level;
		/// <summary>
		/// 前置成就id
		/// </summary>
		public int LastId;
		/// <summary>
		/// 成就描述
		/// </summary>
		public string Description;
		/// <summary>
		/// 成就类型。
		/// 如
		/// 1是玩家达成一定等级
		/// 2是解锁一定数量的蓝图
		/// 以此类推。
		/// </summary>
		public EnumAchievementConditionType ConditionType;
		/// <summary>
		/// 达成成就需要的等级、蓝图、抵御尸潮次数等数目下限
		/// </summary>
		public int ConditionNum;

		/// <summary>
		/// 达成条件里有特定id时，此字段就是蓝图、怪物等的id
		/// </summary>
		public int ConditionId;
		
		/// <summary>
		/// 物品1的类型
		/// </summary>
		public EnumAchievementAwardType Award1Type;
		/// <summary>
		/// 奖励物品1的id
		/// </summary>
		public int Award1Id;
		/// <summary>
		/// 奖励物品1的数目
		/// </summary>
		public int Award1Num;
		/// <summary>
		/// 物品2的类型
		/// </summary>
		public EnumAchievementAwardType Award2Type;
		/// <summary>
		///奖励物品2的id
		/// </summary>
		public int Award2Id;
		/// <summary>
		/// 奖励物品2的数目
		/// </summary>
		public int Award2Num;

		/// <summary>
		/// 奖励是否已领取 。
		/// true已领，false未领
		/// </summary>
		public bool AwardGot;


	}
}
